{"version":3,"file":"accessrights.bundle.map.js","names":["this","BX","exports","main_loader","ui_notification","ui_switcher","main_popup","main_core_events","ui_entitySelector","main_core","_templateObject","_templateObject2","BX$1","Reflection","namespace","Grid","options","babelHelpers","classCallCheck","renderTo","buttonPanel","UI","ButtonPanel","layout","container","component","actionSave","ACTION_SAVE","actionDelete","ACTION_DELETE","actionLoad","ACTION_LOAD","mode","MODE","openPopupEvent","popupContainer","additionalSaveParams","loadParams","loader","timer","initData","userGroups","accessRights","isRequested","loadData","bindEvents","createClass","key","value","EventEmitter","subscribe","updateRole","bind","updateAccessVariationRight","updateAccessRight","adjustButtonPanel","addUserGroup","addRoleColumn","removeRoleColumn","onGetEntityTypes","accessRightsSections","headSection","members","columns","fireEventReset","emit","fireEventRefresh","getButtonPanel","showNotification","title","Notification","Center","notify","content","position","autoHideDelay","sendActionRequest","_this","setTimeout","blockGrid","needReload","dataToSave","i","length","Text","toNumber","id","push","accessCodes","type","ajax","runComponentAction","data","parameters","then","reloadGrid","Loc","getMessage","unBlockGrid","clearTimeout","waitContainer","getContainer","querySelector","Dom","removeClass","lock","addClass","getMainContainer","unlock","deleteActionRequest","roleId","_this2","_this3","response","ACCESS_RIGHTS","USER_GROUPS","draw","_this4","offsetTop","getBoundingClientRect","top","style","getLoader","show","hide","Loader","target","param","removeColumn","map","targetIndex","indexOf","userGroup","splice","event","_event$getData","getData","_event$getData2","slicedToArray","sections","newColumn","addColumn","scrollToRight","getColumnsContainer","scrollWidth","offsetWidth","_event$getData3","_event$getData4","item","index","text","modifiedItems","querySelectorAll","modifiedRoles","modifiedUsers","modifiedVariables","accessId","access","switcher","checked","deleteIds","_item","forEach","values","selectedValues","_this5","addSection","getColumns","getSections","getUserGroups","user","getHeadSection","Section","grid","hint","sectionHint","sectionTitle","rights","getSectionNode","Tag","render","taggedTemplateLiteral","docFragmentSections","document","createDocumentFragment","append","innerHTML","afterRender","adjustEars","onMemberSelect","params","option","buildOption","state","onMemberUnselect","controls","Main","selectorManagerV2","selectorInstance","Object","keys","entityTypes","USERGROUPS","enableSearch","searchById","addTab","returnItemUrl","getOption","dataColumnAttribute","node","bindOptions","hasAttribute","Type","isUndefined","columnId","getAttribute","accessItem","entityType","accessCodesResult","defineProperty","AccessRights","_templateObject$1","Base","currentValue","identificator","Math","random","parentContainer","getId","_templateObject$2","Title","_Base","inherits","possibleConstructorReturn","getPrototypeOf","apply","arguments","encode","Event","adjustPopupHelper","popupHelper","close","set","cloneNode","body","remove","getPopupHelper","PopupWindowManager","create","autoHide","darkMode","maxWidth","offsetLeft","animation","_templateObject$3","Hint","call","className","hintNode","hintManager","createInstance","popupParameters","angle","setAttribute","attributeName","attributeHtmlName","attributeInteractivityName","initNode","_templateObject$4","_templateObject2$1","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","_templateObject15","_templateObject16","_templateObject17","_templateObject18","_templateObject19","_templateObject20","BX$2","Member","addToAccessCodes","removeFromAccessCodes","resetNewMembers","getMember","member","membersFragment","counter","validateVariables","reverse","userNode","avatar","userAvatar","name","encodeURI","avatarClass","emptyAvatar","getAddUserToRole","adjustPopupUserControl","newMembers","updateMembers","firstKey","toUpperCase","entityId","url","new","toLowerCase","users","groups","departments","sonetgroups","counterUsers","showUserSelectorPopup","getUserPopup","addUserToRole","popupUsers","contentTitle","onTitleClick","activate","adjustSlicker","groupTitleItem","_groupTitleItem","_groupTitleItem2","_groupTitleItem3","getUserPopupTogglerGroup","footer","footerLink","preventDefault","isDomNode","slicker","titles","contents","contentPadding","padding","offset","closeEsc","events","onPopupShow","firstActiveNode","onPopupClose","destroy","array","toggler","iconClass","removeButton","_BX$Main$selectorMana","itemsSelected","onCustomEvent","bindNode","selectorId","selectedItems","_templateObject$5","_templateObject2$2","_templateObject3$1","_templateObject4$1","_templateObject5$1","_templateObject6$1","Role","column","window","getRole","closest","offRoleEditMode","role","roleInput","keyCode","roleValue","editControl","onRoleEditMode","removeControl","showPopupConfirm","roleControlWrapper","focus","popupConfirm","width","overlay","setButtons","Button","click","getUserGroup","innerText","_templateObject$6","Changer","isModify","getChanger","changer","offChanger","refreshStatus","adjustChanger","toggleClass","Toggler","_Changer","Switcher","size","handlers","assertThisInitialized","unchecked","toggled","check","isChecked","get","prototype","getNode","_templateObject$7","_templateObject2$3","_templateObject3$2","Controller","controller","controllerLink","controllerMenu","popupMenu","getPopupMenu","toggleControllerMenu","TYPE","menuItems","onclick","accessRightsCopy","assign","accessCodesCopy","Menu","_templateObject$8","VariableSelector","variables","reset","refresh","_this$getSelected$tit","_this$getSelected","getSelected","variablesValue","showVariablesPopup","selected","filter","variable","includes","select","PopupMenu","_item$getMenuWindow","getMenuWindow","_templateObject$9","UserGroupTitle","_Title","_templateObject$a","_templateObject2$4","_templateObject3$3","Footer","_DefaultFooter","dialog","selectAllButton","selectAll","deselectAllButton","deselectAll","getDialog","onItemStatusChange","getContent","toggleSelectButtons","getSelectedItems","getItems","hasClass","deselect","DefaultFooter","_templateObject$b","MultiSelector","_options$enableSearch","_options$showAvatars","_options$compactView","placeholder","hintTitle","allSelectedCode","showAvatars","compactView","isArray","tabs","selector","createSelector","Dialog","height","context","multiple","dropdownMode","searchOptions","allowCreateItem","setSelectedInputs","entities","items","includesSelected","firstItem","slice","isStringFilled","getTitle","showSelector","init","_templateObject$c","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","enumerable","_objectSpread","source","getOwnPropertyDescriptors","defineProperties","ColumnItem","hintOptions","namespace$1","_templateObject$d","Column","section","getItem","_param$userGroup$acce","_param$userGroup","toString","_param$currentValue","resetClassNew","itemsFragment","namespace$2","_templateObject$e","_templateObject2$5","_templateObject3$4","_templateObject4$2","_templateObject5$2","_templateObject6$2","_templateObject7$1","_templateObject8$1","_options$id","headColumn","earLeft","earRight","scroll","earTimer","earLeftTimer","earRightTimer","scrollLeft","getScroll","getGrid","getColumn","isVariable","addHeadColumn","adjustScroll","getTitleNode","appendChild","isLeftVisible","isRightVisible","round","getContentContainer","classList","getEarLeft","getEarRight","stopAutoScroll","scrollToLeft","stop","interval","setInterval","clearInterval","_this$grid$getUserGro","sectionContainer","columnsFragment","namespace$3","EntitySelector"],"sources":["accessrights.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,GACrB,SAAUC,EAAQC,EAAYC,EAAgBC,EAAYC,EAAWC,EAAiBC,EAAkBC,GACxG,aAEA,IAAIC,EAAiBC,EACrB,IAAIC,EAAOH,EAAUI,WAAWC,UAAU,MAE1C,IAAIC,EAAoB,WACtB,SAASA,EAAKC,GACZC,aAAaC,eAAelB,KAAMe,GAClCC,EAAUA,GAAW,CAAC,EACtBhB,KAAKgB,QAAUA,EACfhB,KAAKmB,SAAWH,EAAQG,SACxBnB,KAAKoB,YAAcR,EAAKS,GAAGC,aAAe,KAC1CtB,KAAKuB,OAAS,CACZC,UAAW,MAEbxB,KAAKyB,UAAYT,EAAQS,UAAYT,EAAQS,UAAY,KACzDzB,KAAK0B,WAAaV,EAAQU,YAAcX,EAAKY,YAC7C3B,KAAK4B,aAAeZ,EAAQY,cAAgBb,EAAKc,cACjD7B,KAAK8B,WAAad,EAAQc,YAAcf,EAAKgB,YAC7C/B,KAAKgC,KAAOhB,EAAQgB,MAAQjB,EAAKkB,KACjCjC,KAAKkC,eAAiBlB,EAAQkB,eAAiBlB,EAAQkB,eAAiB,KACxElC,KAAKmC,eAAiBnB,EAAQmB,eAAiBnB,EAAQmB,eAAiB,KACxEnC,KAAKoC,qBAAuBpB,EAAQoB,qBAAuBpB,EAAQoB,qBAAuB,KAC1FpC,KAAKqC,WAAarB,EAAQqB,WAAarB,EAAQqB,WAAa,KAC5DrC,KAAKsC,OAAS,KACdtC,KAAKuC,MAAQ,KACbvC,KAAKwC,WAEL,GAAIxB,EAAQyB,WAAY,CACtBzC,KAAKyC,WAAazB,EAAQyB,UAC5B,CAEA,GAAIzB,EAAQ0B,a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